<?php
/**
 * Created by Forever.
 * User: Forever
 * Date: 2018/8/27 0027
 * Time: 上午 9:53
 */
namespace app\admin\validate;
use think\Validate;
class Systems extends Validate{
    // 验证规则
    protected $rule = [
        ['oldpassword','require','-10029'],
        ['newpassword','require','-10030'],
        ['confirmpassword','require','-10031'], 
        ['id','require','-10011'], 

    ];

    protected $scene = [
         'password'=>['username','password'],
         'permission_detail'=>['id'],
         
    ];


    /**检查成长值
     * [checkData description]
     * @param  [type] $value [description]
     * @param  [type] $rule  [description]
     * @param  [type] $data  [description]
     * @return [type]        [description]
     */
    protected function checkGrowth($value,$rule,$data){
        return true;
    }


}
